<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('本地库存')" />
    <link rel="stylesheet" href="../../../../../../../../../../../../css/navigation.css">
</head>
<body class="gray-bg">
<div class="navigation visible-xs-block">
  <ol class="breadcrumb">
    <span> > </span>
    <li><a href="#" onclick="gomain()">主页</a></li>
    <li style="color: black">采购计划</li>
  </ol>
  <div class="aLine"></div>
</div>
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>材料名称：</label>
                                <input type="text" name="tName"/>
                            </li>
                            <li>
                                <label>材料数量：</label>
                                <input type="text" name="tNum"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbar" role="group">
<!--                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="ruoyi:inventory:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="ruoyi:inventory:edit">-->
<!--                    <i class="fa fa-edit"></i> 修改-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="ruoyi:inventory:remove">-->
<!--                    <i class="fa fa-remove"></i> 删除-->
<!--                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="ruoyi:inventory:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
     <script src="../../../../../../../../../../../../js/breadcrumb.js"></script>
     <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('ruoyi:inventory:edit')}]];
        var removeFlag = [[${@permission.hasPermi('ruoyi:inventory:remove')}]];
        var prefix = ctx + "ruoyi/inventory";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                showColumns: false,
                modalName: "本地库存",
                columns: [
                {
                    field: 'id', 
                    title: 'id',
                    visible: false
                },
                {
                    field: 'tName', 
                    title: '材料名称'
                },
                {
                    field: 'tNum', 
                    title: '材料数量'
                },
                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>